package com.mszlu.msauth.admin.controller;

import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.Set;

@Service
public class UserService {
    public UserInfoVO getUserLoginInfo() {
        UserInfoVO userInfoVO = new UserInfoVO();
        userInfoVO.setUserId(1000L);
        userInfoVO.setNickname("码神之路");
        userInfoVO.setAvatar("https://img2.woyaogexing.com/2023/08/11/4ed63711c631465df3ec5235d51504d5.jpg");
        Set<String> roles = new HashSet<>();
        roles.add("ROOT");
        userInfoVO.setRoles(roles);
        Set<String> perms = new HashSet<>();
        userInfoVO.setPerms(perms);
        return userInfoVO;
    }
}